package com.moleq.mgpos.widget;

import com.moleq.mgpos.activities.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;


public class ViewCache {
	private View baseView;  
    private TextView textView;
    private TextView textView2;  
    private ImageView imageView;  

    public ViewCache(View baseView) {  
        this.baseView = baseView;  
    }  

    public TextView getTextView() {  
        if (textView == null) {  
            textView = (TextView) baseView.findViewById(R.id.textViewDesc);  
        }  
        return textView;  
    }  
    
    public TextView getTextView2() {  
        if (textView2 == null) {  
        	textView2 = (TextView) baseView.findViewById(R.id.textViewDesc2);  
        }  
        return textView2;  
    }  

    public ImageView getImageView() {  
        if (imageView == null) {  
            imageView = (ImageView) baseView.findViewById(R.id.imageViewPic);  
        }  
        return imageView;  
    }

	public View getView() {
		
	        return baseView;
	}  
}
